//
//  DVIGeometry.m
//  DrawShape
//
//  Created by apple on 15/8/5.
//  Copyright (c) 2015年 戴维营教育. All rights reserved.
//

#import "DVIGeometry.h"

const DVIPoint DVIPointZero = {0.0, 0.0};
const DVISize DVISizeZero = {0.0, 0.0};
const DVIRect DVIRectZero = {{0.0,0.0},{0.0,0.0}};

NSString * NSStringFromDVIPoint(DVIPoint point) {
    return [NSString stringWithFormat:@"point: {%.1f, %.1f}", point.x, point.y];
}

NSString * NSStringFromDVISize(DVISize size) {
    return [NSString stringWithFormat:@"size: {%.1f, %.1f}", size.width, size.height];
}

NSString * NSStringFromDVIRect(DVIRect rect) {
    return [NSString stringWithFormat:@"rect: {{%.1f, %.1f},{%.1f, %.1f}}", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height];
}